#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

typedef char Element;

typedef struct
{
	Element* data;
	int n;
	int capacity;
	int* groupID;
}QuickFindSet;

QuickFindSet* createQuickFindSet(int capacity);

void initQuickFindSet(QuickFindSet* findSet, Element* data, int n);

int isSameQuickFindSet(QuickFindSet* findSet, Element a, Element b);

void unionQuickFindSet(QuickFindSet* findSet, Element a, Element b);

void releaseQuickFindSet(QuickFindSet* findSet);
